<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('yp','com_default-header'); ?>
<!--主体-->
<div class="main_all">
<div id="main">
  <!--右侧-->
  <div id="right">
    <p id="position"><strong>当前位置</strong>：<?php echo $position;?></p>
    <h3><?php echo $system_name[$category];?></h3>
    <div class="box">
      <div id="pro_show" class="f_r">
        <h2><?php echo $title;?></h2>
        <ul>
          <li>所属分类：<?php echo $CATEGORY[$catid]['catname'];?></li>
  <li>产品型号：<?php echo $standard;?></li>
          <li>产品价格：<?php if($price) { ?><?php echo $price;?> 元/<?php echo $quantifier;?><?php } else { ?><a href="<?php echo $siteurl;?>/category-guestbook/label-product/id-<?php echo $id;?>.html">我要询价</a><?php } ?></li></li>
          <li>计量单位：<?php echo $quantifier;?></li>
          <li>更新时间：<?php echo date('Y-m-d',$updatetime);?>
  </li>
  <li><a href="<?php echo $siteurl;?>/category-guestbook/label-product/id-<?php echo $id;?>.html"><img src="yp/images/xunjia.gif" alt="我要询价" align="absmiddle" border="0"/></a> <span id="favoriteid">
  <script type="text/javascript" id="callback_js"></script>
  <script language="JavaScript" src="<?php echo $PHPCMS['siteurl'];?>yp/collect.php?userid=<?php echo $userid;?>&title=<?php echo $title;?>&returnid=favoriteid&callback_js=callback_js&referer=<?php echo urlencode(URL);?>"></script></span></li>
        </ul>
      </div>
      <div id="pro_pic" class="f_l"><img src="<?php echo thumb($thumb,210,240);?>" alt="<?php echo $title;?>" width="210"/></div>
      <div class="cb"></div>
      <h4>详细说明</h4>
      <div class="box_1"><?php echo $content;?></div>
    </div>
  </div>
  <!--左侧-->
   <div id="left">
<?php if($m_user) { ?>
<h3>热点导航</h3>
<div class="hot_nav">
  <ul>
<?php if(is_array($m_user)) foreach($m_user AS $ms) { ?>
  <li><a href="<?php echo $ms['url'];?>"><?php echo $ms['catname'];?></a></li>
<?php } ?>
  </ul>
</div>
<?php } ?>
<h3>热点产品</h3>
    <div class="box">
      <ul>
<?php $DATA = get("SELECT * FROM `phpcms_yp_product` `p` , `phpcms_yp_count` `ct` WHERE `p`.`userid`='$userid' AND `p`.status=99 AND `p`.`id` = `ct`.`id` AND `ct`.`model` = 'product'  ORDER BY `ct`.hits DESC", 10, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><a href="<?php echo show_url('product',$r[id]);?>" title="<?php echo $r['title'];?>"><?php echo str_cut($r[title],28,'');?></a></li>
<?php } unset($DATA); ?>
      </ul>
    </div>
    <h3>站内搜索</h3>
    <form class="box" action="<?php echo $M['url'];?>web/query.php">
      <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="<?php echo $userid;?>" type="hidden" />
    </form>  
  </div>
  <div class="cb"></div>
</div>
</div>
<!--尾部-->
<div id="foot"><?php echo $companyname;?><br/> 地址：<?php echo $address;?></div>
</body>
</html>
